import {expect, test} from 'bun:test';
import {createToo} from '../create/iso-base-media/ilst/create-too';

const reference = new Uint8Array([
	0x0, 0x00, 0x00, 0x24, 0xa9, 0x74, 0x6f, 0x6f, 0x00, 0x00, 0x00, 0x1c, 0x64,
	0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x61,
	0x76, 0x66, 0x36, 0x31, 0x2e, 0x37, 0x2e, 0x31, 0x30, 0x30,
]);

test('create too', () => {
	expect(createToo('Lavf61.7.100')).toEqual(reference);
});
